package com.ydsungan.service;

import com.ydsungan.pojo.*;
import io.swagger.models.auth.In;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface BookService {
    void addBook(Book book);
    List<Book> selectBook(BookExample bookExample);
    Book getBookById(Integer id);
    Chapter getChapterById(Integer id);
    List<Chapter> listCatalog(ChapterExample chapterExample);
    int addLoginRecord(Statistics statistics);
    long countPracticeByOpenid(PracticeExample practiceExample);
    List<Statistics> listStatistics(StatisticsExample statisticsExample);
    List<Used> listUsingBook(UsedExample usedExample);
    List<Book> selectUsingBook(String openId);
    List<BookVO> listAllBooks();
    int getRank(String openId) throws ParseException;
    void addVisitorRecord(Visitor visitor);
    BookVO getBookDetail(String bookId);

}
